<script setup>
import { ref } from 'vue'
//2.1计算机功能
const count = ref(99)
const add = () => count.value++
const cut = () => count.value--

</script>

<template>
  <div>
    <button @click="cut">-</button>
    <span>{{ count }}</span>
    <button @click="add">+</button>
  </div>
</template>

<style scoped>

</style>
